<template>
  <div class="ai-theater-page">
    <div class="container">
      <div class="content-section">
        <h1 class="main-title">AI 剧场 <span class="highlight">互动体验</span></h1>

        <p class="subtitle">与AI角色实时对话，体验沉浸式角色扮演，这里为想象力和现实技能</p>

        <div class="stats-section">
          <div class="stat-item">
            <div class="stat-number">10K+</div>
            <div class="stat-label">活跃用户</div>
          </div>
          <div class="stat-item">
            <div class="stat-number">500+</div>
            <div class="stat-label">精品剧本</div>
          </div>
          <div class="stat-item">
            <div class="stat-number">50+</div>
            <div class="stat-label">定制场景</div>
          </div>
        </div>

        <div class="action-buttons">
          <button class="primary-btn" @click="handleExperience">立即体验</button>
          <button class="secondary-btn" @click="handleBrowse">浏览剧场</button>
        </div>
      </div>

      <div class="display-section">
        <div class="display-card" @click="handleBrowse">
          <div class="card-content">
            <div class="placeholder-text">剧本预览区域</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
const handleExperience = (): void => {
  router.push('/TheaterList')
}

const handleBrowse = (): void => {
  router.push('/TheaterList')
}
</script>
<style scoped lang="scss">
.ai-theater-page {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  background-color: #f8fafc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;

  // 添加装饰背景
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
      radial-gradient(circle at 20px 20px, rgba(59, 130, 246, 0.03) 1px, transparent 0),
      radial-gradient(circle at 60px 60px, rgba(6, 182, 212, 0.03) 1px, transparent 0);
    background-size: 80px 80px;
    pointer-events: none;
  }
}

.ai-theater-page .container {
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start; // 改为 start 对齐
  position: relative;
  z-index: 1;
}

.ai-theater-page .content-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem; // 使用统一间距
}

.ai-theater-page .main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  margin: 0; // 重置 margin

  .highlight {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.ai-theater-page .subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0; // 重置 margin
}

.ai-theater-page .stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0; // 重置 margin
}

.ai-theater-page .stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.8);
  }

  .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    display: block;
  }

  .stat-label {
    font-size: 0.9rem;
    color: #64748b;
    display: block;
  }
}

.ai-theater-page .action-buttons {
  display: flex;
  gap: 1rem;
  margin: 0; // 重置 margin

  button {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
  }

  .primary-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);

    &:hover {
      background: linear-gradient(135deg, #2563eb, #0891b2);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }

    &:active {
      transform: translateY(0);
    }
  }

  .secondary-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);

    &:hover {
      background: rgba(255, 255, 255, 0.95);
      border-color: #3b82f6;
      color: #2563eb;
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
    }
  }
}

.ai-theater-page .display-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-theater-page .display-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px dashed rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;

  &:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.1);
  }

  // 添加装饰元素
  &::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02), rgba(6, 182, 212, 0.02));
    border-radius: 12px;
    pointer-events: none;
  }
}

.ai-theater-page .placeholder-text {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
</style>
